package com.metacube.questionbank.jdbc;

import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;
import com.metacube.questionbank.model.Tag;

/*
 * @author Team Neeraj Jain
 * */
public class TagRowMapper implements RowMapper<Tag> {

	/*
	 * @param resultSet
	 * 
	 * @param line This method extracts the data from the result set.
	 * 
	 * @return object of Tag class.
	 */
	public Tag mapRow(ResultSet resultSet, int line) throws SQLException {
		TagExtractor tagExtractor = new TagExtractor();
		return tagExtractor.extractData(resultSet);
	}

}
